package cn.yougou.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * (YgCommodityProduct)实体类
 *
 * @author 白杰崇
 * @since 2020-12-11 18:57:34
 */
public class YgCommodityProduct implements Serializable {
    private static final long serialVersionUID = 354472006681382617L;
    /**
     * 主键
     */
    private Integer id;
    /**
     * 商品id
     */
    private Integer commodityid;
    /**
     * 商品规格值列表，采用JSON数组格式
     */
    private String specifications;
    /**
     * 商品规格值（不同组合）的id拼接
     */
    private String specificationsid;
    /**
     * 商品货品价格
     */
    private Double price;
    /**
     * 商品货品数量
     */
    private Integer number;
    /**
     * 商品规格图片
     */
    private String picurl;
    /**
     * 创建时间
     */
    private String addtime;
    /**
     * 更改时间
     */
    private String updatetime;
    /**
     * 删除逻辑
     */
    private Integer deleted;

    public YgCommodityProduct() {

    }

    public YgCommodityProduct(Integer id) {
        this.id = id;
    }

    public YgCommodityProduct(String specifications, Integer commodityid) {
        this.specifications = specifications;
        this.commodityid = commodityid;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCommodityid() {
        return commodityid;
    }

    public void setCommodityid(Integer commodityid) {
        this.commodityid = commodityid;
    }

    public String getSpecifications() {
        return specifications;
    }

    public void setSpecifications(String specifications) {
        this.specifications = specifications;
    }

    public String getSpecificationsid() {
        return specificationsid;
    }

    public void setSpecificationsid(String specificationsid) {
        this.specificationsid = specificationsid;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getPicurl() {
        return picurl;
    }

    public void setPicurl(String picurl) {
        this.picurl = picurl;
    }

    public String getAddtime() {
        return addtime;
    }

    public void setAddtime(String addtime) {
        this.addtime = addtime;
    }

    public String getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(String updatetime) {
        this.updatetime = updatetime;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    @Override
    public String toString() {
        return "YgCommodityProduct{" +
                "id=" + id +
                ", commodityid=" + commodityid +
                ", specifications='" + specifications + '\'' +
                ", specificationsid='" + specificationsid + '\'' +
                ", price=" + price +
                ", number=" + number +
                ", picurl='" + picurl + '\'' +
                ", addtime=" + addtime +
                ", updatetime=" + updatetime +
                ", deleted=" + deleted +
                '}';
    }
}